using System;

namespace ns20
{
	internal class Class191
	{
		private char[] char_0;

		private int int_0;

		private static readonly char[] char_1 = new char[0];

		public int Int32_0
		{
			get
			{
				return int_0;
			}
			set
			{
				int_0 = value;
			}
		}

		public Class191()
		{
			char_0 = char_1;
		}

		public Class191(int initalSize)
		{
			char_0 = new char[initalSize];
		}

		public void method_0(char char_2)
		{
			if (int_0 == char_0.Length)
			{
				method_3(1);
			}
			char_0[int_0++] = char_2;
		}

		public void method_1(char[] char_2, int int_1, int int_2)
		{
			if (int_0 + int_2 >= char_0.Length)
			{
				method_3(int_2);
			}
			Array.Copy(char_2, int_1, char_0, int_0, int_2);
			int_0 += int_2;
		}

		public void method_2()
		{
			char_0 = char_1;
			int_0 = 0;
		}

		private void method_3(int int_1)
		{
			char[] destinationArray = new char[(int_0 + int_1) * 2];
			Array.Copy(char_0, destinationArray, int_0);
			char_0 = destinationArray;
		}

		public virtual string ToString()
		{
			return method_4(0, int_0);
		}

		public string method_4(int int_1, int int_2)
		{
			return new string(char_0, int_1, int_2);
		}

		public char[] method_5()
		{
			return char_0;
		}
	}
}
